Added support for setting Configuration. Fixes #6