Updated engine, added priority queue for systems.