Simplified waitunitfilecomplete