Updating scheduler logic
Found issue with time range validation logic