Add detection for console