EMG missing function added