- Changed the way UAProbe is exposed.
- Passed in document variable to closure, too.