Print total function added