Added environment mode to console.