Fixed problem with function being passed to function