Adding memory analysis