Create mag_template.pd