Update console code