Implement macro builder.