The get_curr_time function makes everything blow up.