Add duration attribute