This is how I managed something called painsomnia ...