Removes some unused stuff.