If you're going to be taking a benzodiazepine like Xanax for sleeping, you might consider switching to another variety. Xanax has a half life of only 4 hours--it gets out of your system quickly. Ativan has a half life of 8 hours, and Klonopin has a half life of 20 hours--so those might be better...