Fixing to use the function parameter.