Fixes #23: Use globals for configuration.