Beat procrastination and do important work first.
Maintain your focus by putting your random thoughts in Laterbox. Whenever some random thoughts strike while you are working...instead of going after them just note them all in your LaterBox, avoid them distracting you.
In the evening, we will send you a 'retrospect' mailer. Its list of all your random thoughts you put in LaterBox. You see them after work hours. Some of them might be important, you can take action on them. Many of them will not be important to you anymore. Yay! You saved time.