Added an option to select duration for action