Time function actually works!