Added heat pads, fixed gate bug