No need to wrap this in a function, just pass the function variable. Ditto above at line 167.