Add logging, change from file read to ConfigParser