Added registerEvent and registerEventHandler to logic runner