Clearing unnecessary data