Added total size and moved some print statements