added sequence number support for each worker function