- 'duty' changed to duration in function and var names