added a method for retrieving the last task time