Mode change -.-
Refactored out duplicate setup code