Updated time script