Now with G4 to wait for queue to empty: it works OK!