A device is described, which provides electrical stimulation to the brain of a person, where the device comprises one or more modules, each module comprising an implantable pulse generator (IPG) and a lead with at least one subcranial electrode, which extends into or near the surface of the brain. Each module's IPG comprises a battery and a subcutaneous electrode. Each module is inserted into a burr hole, and a seal fills the space to minimize electric current flow between the subcutaneous electrode and subcranial electrode.