Finalized download script