Correct profile directory. Remove debug code.