Added the get time function