Functions for proc cycle and control