Added serial console code