Harvest clone, reengineered in Lua.