Add smartscan mode to ml and sml files.