Handle G54 codes correctly