Removes unused code, turns on debug.