Method to change config