Added wrapper for setscanmode function.