Moving c_function back to lua.m