Good morning Sinclair, I've been suffering from bouts of insomnia for just over a month now and my IC recommended I try melatonin. It worked very well. If you're having trouble falling asleep, just take it a half hour before bed. But if you're waking up in the middle of the night and not able to get back to sleep, wait until then before you take it. It makes a big difference, even if you're finding yourself very anxious at these times.
I'm glad you're taking action to take care of yourself. If you're finding though that when you are waking up that your mind is whirling so much that you can't distract yourself and/or fall asleep even with some melatonin, do tell your doctor or IC about it- they can help.
I cannot complain for not receiving from others, that which I've never asked them for.