Added display time function