Added to_dict and bulk_create.