D'oh, messed up the measure names.
Tweak for easier benchmark comparing.
Only load Lua script for processing items once.