Fixed bug where progress stuffs up. Added comments