Moving config file to xml