Adapted UpdateDOcuments class to the new requirements.