Fixed a race condition
Removed boost::date_time dependency