I take a pain pill (Percocet) at bed time and usually get to sleep pretty quickly. There is a night every week or two where it keeps me awake and the only thing I can do is get up for a while, then go back to bed. Sometimes I won't go back to bed until 6am.