Changed to use the same Time.new() object instead of generating a new one each time.