Add extract_properties method.