Add support for a custom onResourceRequested callback
Add custom timeouts and custom onResourceRequested callback