Now works as applet.