Make sure console is defined