Reworked configuration file to include logging