377.04 Fixed dwell problem with M codes - ready for test