Changed to mode instead of sendLine.