Reverted end_time logic for checking existence.