Added debug messages if we can or can't get memory