Modification to tmsi_eeg pipe