Add logging for serial messages