Adding configuration.

TODO: Rest of config implementation