Refactoring main loop, it's broken right now, I'm sleeping on it call the cops.