Added support to parse and dispatch commands in serial streams.