Changed function declaration

Function starting at line 50 likely wouldn't have compiled. I corrected this.