Progress bar working as it should