Added Sleep() to the code to allow for when there are multiple revisions to process