Added some functions for EMG analysis