As a habit, even when you know what's right you can't due to intentional mind easily being derailed, you cannot just decide what you want to do once there is a habit. So that is why you have to make great habits. Think long term and not be a marginal thinker if you don't want to be distracted