Waits for files to be downloaded. Fixes #28