Notice here, 'i' is the deploymentIndex returned in the cases from 'if'.