Adding start-end time
added major performance improvement