Simplifying the code of the main thread of antememoire.