Better error handling, and primitive support for
configuration files.