Why did you change this and put the code in registerOperations?