Gets rid of unnecessary data