Added  configuration loading, listener registering.