Removed redundant code from applet.