Implemented all SCAN commands