Added debug method, fixed checkStuff()