Switched all time-related variables to "time_t" and stopped casting to int32