Time functions and List Sorting Added