A system is provided for implantation into the skull of a patient including a device to detect the onset and/or existence of a neurological condition and deliver a medication to prevent the neurological condition, and/or to improve or sustain normal neurological function. Methods for utilizing the system and device are also provided.