wfProfileOut should go before this line