Split the g-code generation into another file