Refactored and introduced time duration.