Bring code from eegpipe