Make timer work

Fixes #1