* Added code for progress bar * Added doc string * Using in * More cleaning * Only update position if needed.