Exec commands for onTick & onComplete

This fix issue #112.