$gov->beginWork( $before ); ... # Consume resources $gov->endWork( $after );