Initial port of autoconfigure