Added encoding progress block and callback