Added check for console, false if CLI