Added parameter to set the initial progress