Added Duration Type to the code.