Removing debug code and whitespace.