Finding the more efficient way to preprocess logs. Improving the swaping process. And fixed a parameter passing in MedoidsContent part.