Adding progress calcualtion