Improve applet assignment. Important problems fixed