Working towards reasonable memory usage.