Allows app interaction while the scan is running
Data structures and logic was changing very fast. Don't have the time to break downt the individual sections ATM. Sorry future reader (me).