You can just pass the function directly to this method.