I had to fiddle with duration after seeing somebody fork it on github feed