Build configure function