Refactor ScanEngine execution mode