Add new API to allow multiple behaviours with a single timer.