Removing unused attributes