Added explicit dependency for time, which resolves an ambiguity.