Hongyi: add a wrapper for measurement parameters and add an interface for chaining tasks