Add set_schema and get_schema functions