Implementing a download queue