A method and system for treating brain disorders comprises detecting activity of a first target area of the brain via a first implanted sensor and determining the presence of target brain activity by analyzing the detected brain activity in combination with treating the user based upon the determined presence of target brain activity by supplying a first therapeutic agent to the first target area via a first implanted fluid delivery member including at least one distal opening adjacent to the first target area. In addition, the system may be used as well for testing the effectiveness of drugs.