Added code to read conf parameters