Now sending the enum mode rather than the modestr.