Added include for time.h