Ability to pause and resume routines and bugfix. slight cleanup.