Improved engine run loop, enable/disable methods and deregisterContext method