Removes some unused variables