Added autoconfigure_template option