Strangely enough, I've found that since I increased my caffeine intake (to around 900-1200mg/day via energy drinks) I've been sleeping great. I usually go to sleep around 10pm, wake up naturally around 3am, and take a 1 hour nap around 3 pm. I've been drinking a lot of water as well, and I've had no problems focusing on work. I think the nap is the key though.