Add logging toggle; remove #execute_debug