Added shift duration functionality