Add support for serialized pid parameter.