added some calls to get duration and get current time for future reference