Solve problem with memory.