SCI: Move event processing out of parseNextEvent