Removes unnecessary data