Implemeted Flag logic
Moved the redundant network restration code into a seperate class
Fixed the bug where it was impossbile to pickup the flag the second time