Added methods to handle the checking when giving "startTime", "endTime" and "duration".