TODO: It would be nice to allow CommonJS/server to support the callback.