Removes unncessary items.