Removed unnecessary anonymous function in definition of time()