Change format to bag_format to not conflict with reserved definition attribute