Removing unnecessary data