Adding memlog and test.