A neurostimulator to reduce pain