Provided is an implantable neurostimulator comprising: a housing configured to be implanted into a patient; a microchip disposed in the housing, the microchip comprising a power antenna configured to receive power from an external source, a microcontroller configured to use the power to create and deliver neurostimulation signals, and a communication antenna configured to communicate with an external device; and at least one electrode configured to receive the neurostimulation signals and to apply the neurostimulation signals to target tissue.