Store a mode flag