Print function is causing out of memory.