Added a runInSandbox overload taking Callable for convenience.