Add smartscan-mode to shell files
Remove useless code