Config half working

Auto Config almost working.