Bed level command

Hi,

In the custom printer settings on Atroprint Ender 3 (cura 3.6), I added G29 after the G28 code so that the printer will do a bed level before printing. However, when I slice, the commands for heating the bed and extruder appear before the G29 in the gcode. That means it heats up first, then does a bed level. While bed leveling, it cools down. I want the level to happen before heating. I can’t seem to do that without manually editing the gcode on every slice. Thoughts?