For me, my biggest huddle in staying focus is that I tend to procrastinate a lot.
My advice would be to give the Pomodoro technique a try. http://en.wikipedia.org/wiki/Pomodoro_Technique
Divide your working time into 25-minute intervals, with a 5-minute rest in between to recharge your focus.
It helps me stay concentrated and prevent procrastination.