Trying to solve memory problems.