Code for the inEvent based ASR server