Don't run the algorithm each time we enter the view