Updated serial comm. program