Modified Event queue to be an STL queue