If you ever need to add the gcode to stop at a layer and change the filament, this is it.
{REPLACE "; layer 1," "G1 X0 Y0\nM0\n; layer 1,"}