Removing attributes that aren't used