Alter program to be more like Lua sample.