Add exceptions to enforce callback parameter.