Added eeg querying code