AvalancheRepository coded and tied to the controller.