Control of stochasticity in magnetic field lines