Add support for duration when creating timers

Has fallback to original functionality if it fails