Added functionlity to read config file