Fixed the get_event method
Removed the spurious while loop timeout