Edited to only print result