Added distributor processing codes.
Fixed dispatch generated msg to next processor.