Cleanup and texture optimizations.