I read that among the things that cause insomnia are sitting in front of the computer too long-30 minutes before bedtime, one should turn it off and do something that is easier on the eyes. I've noticed that a lot of times when I can't sleep at night, I didn't follow this advice. Might be worth a try.