This assignment needs to be outside the function.