Added autoconfig
Wired up invert config