Changed comparator to the actual time