New approach for memory usage issue.