Added a declaration for a loop variable. Compiles now.