Error thrown

Undefined constant "mode"