Insomia.... ah... my old friend...
Some days (quite rare) I can get to sleep just fine but very often 3-4 in the morning I'm finally exhausted enough to get to sleep. The ONLY thing that has EVER helped my insomnia is a pattern. I have to CONSTANTLY go to bed at the same time, wake up at the same time (exactly 7.5 hours of sleep) and I have to continue this pattern indefinitely. If I break it because something is interesting I spend weeks fixing it...