Fixed blocking behaviour on download by making it asynchronous