Modified code to generate a moving eddy