Added advanced time handling and introduced basic skeleton for pulling events from the open pool.
Fixed some bugs with timestamps.