Third time is the charm they say.

TODO: make it a proper function variable... timeout isn't used anywhere anyway.