Removing irrelevant data