Removed time.h dependency