A computer program having code recorded on a computer readable medium for preventing neural activity during a user's sleep from being used for controlling functions in a system for tracking neural activity in a user and using an electrical signal based on said tracked activity for controlling computer controlled functions, said computer program comprising:
- means for predetermining a neural activity pattern indicative of the transition of a user from awake to asleep;
- means for monitoring the neural activity of said user for said predetermined neural activity pattern;
- and
- means responsive to the detection of said predetermined neural activity pattern for terminating said use of said electrical signals based upon said tracked neural activity.