Added support for progressCallback

Added support for progressCallback