Moved AutoMode To a sepparate file