Whenever our mind wanders we need to bring it back. The exercise would be tiring and sometimes we may even fail. But if we persevere then gradually we would be able to restrain our mind to a great extent. A jockey, while controlling his horse, neither applies too much force nor gives excessive freedom to the horse. We too will have to slowly restrain and restrict our mind. But all these efforts will go in vain if the mind does not get any positive engagements to focus on. We may apply force and bring back our mind but after bringing back we need to provide some object on which mind can focus. As we all know that we cannot empty the mind. So the only way to effectively subdue the mind is by focusing it on something positive.
Our mind focuses on those objects where it assumes that it will get pleasure. So, once we provide a higher taste to the mind then automatically it will start focusing on the object where it derives maximum pleasure. Transcendental pleasure is the highest of all the pleasures. And the practice of Krishna consciousness will open the gateway of transcendental pleasure. Hearing and chanting the names of Krishna is the most effective way to get detached from wrong thoughts and get attached to devotional thoughts.
We also need to regularly scan our mind to diagnose if there are any impurities still clogging our mind. And simultaneously we need to meticulously refrain our mind from getting allured by materialistic thoughts. The success will not happen overnight. We need to diligently endeavor for detachment from sense gratification and attachment to devotional life.