Concurrent dl

This commit is based on #4, so that should be merged in first.