Put the entire inject gcode into a lock statement.
Made sure injected gcode always go in at the head.
Made sure we clear our current line before we send it to the printer.