Why on earth was this line in the wrong place?
Some comments and not calling error when no rawfiles found (wait for them instead)