Added a progressbar and deleted prints in command line.