Added start and end date to schedule lookup, tidied some of the debugging strings