Chunk it, use the technique of doing it for 20 to 30 minutes and when the time is up stop. Use a timer and stick to it. When you say to yourself you're going to work on it for only 20 to 30 minutes you must stop. At the very least take a break and set the timer again.

The Paraliminal Get Around To It is also useful.

Alex