Bring code from eegpipe repo