Changed mktime to time