Increase of memory and clean up