Wasn't actually filtering unwanted attributes.