Changed hardcoded loop var to bound var.