Added showing duration function.