Adapted to new version of ScanApplet