Ensure we have required constants available
Correct handling in case we get [nil]
Use correct input mode symbol