I've managed to delete the existing double loop without effecting the applet.