Changed set_properties method to filter_properties