Fiddling with popen to page results, kinda buggy