Only allow declared attributes to be set