added G4 hook to increase the timeout for serial communication