The globals scare me a bit, but it's easy to use.