I have insomnia, under what conditions should I take Mirtazapine (Remeron) 7.5 MG to get the best sleep results? On an empty stomach or with a meal? Right before going to sleep or a few hours before?

I ask because I recently tried Ambien, which did nothing to help me. I was so desperate for sleep that I even took several Ambien pills over the recommended dose and still, I didn't get any sleep. Luckily, my lack of sleep lead to a serious loss in appetite and I took the Ambien on an empty stomach when before I had been taking it right after dinner. BIG DIFFERENCE!

My doctor has me trying out Remeron now. It worked the first night I tried it, but not the second night and I can't remember what I did differently those two nights. So, I was hoping that instead of using the trial and error method (while loosing sleep for every wrong attempt I make) to figure out the specifics, someone that already has some experience with this medication could tell me what works best? Any and all helpful information is welcomed. Thank You!