Refactored some code to maintain state more efficiently. Upon restart, a full scan is conducted since we cannot get a list of changes.