wfProfileOut() is missing in line 195