Modified the code to show time details