Added support for multiple scans simultaneously