Loads of memory and performance optimizations.