Begun to create memory loading algo