Dumping old code from lua.m