This is a simple version which is modified from Neurosky demo app code.