Add G4 to the allowed G-codes for Optimization