Progress Bar working but inaccurate