Base console code