Add logs to see what happens.
Add logs and fix broken logic.
Add reading configuration from property file with demo configuration