Refactored 'cls' to avoid re-opening output device.