Added logging for percent completion.