Backend generation helpers.