Bsongis/issue594 settimer function

Issue #594 done