Added debug memory usage