Added progress bar

The code needs cleaning