Improve doc of process function