Added serial filter to do customized stuff upon receiving serial messages