Solutions for memory issues