Added prototype for mode validation in NEG