Added console code