Set mode in setup if not already set