Removing comments and unused variables.