Adds ttl support.

Fixes #1
Runs in the background. The docs dont show a callback, but it errors unless one is there.