Get rid of memory leak, use lazy-io