Add functions for awaiting activity start/stop. (dm)