Can't we just change the code in the lua.cpp to handle the new angerlist structure and keep the old function? Then we do not need to copy all this stuff which would probably be faster?