Fixed the clearMemory part in Pixel, so now it should work. Otherwise started to clean up the code
cleanup checkpoint