Fixed Debug functions to be compatible with KeraLua