added pool option to measure()