Memory improvements.