Added rudimentary support to engine that allows it to handle different events at once.