Use time_t instead of long.