Added generic scan function to controller library for queuing and processing complete scans.