Take control of your mind.
Keeping your mind in check is very important if you want to stay productive. However, research indicates that most people find it difficult to do this—if a temptation presents itself when you are challenged by a demanding cognitive task (one that requires your focus), you are very likely to yield to the temptation. This will result in your attention being drawn away from the task at hand, and your productivity levels will decrease.
It is therefore very important that you learn how to keep your mind in your control.