Made my own version:
- removed automated download;
- added a bit more outputs;
- made a little bit of refactoring (functions to avoid code duplication);
- added a bit of flexibility regarding archive format;
- made sure tmp files were removed at the end.