WIP: Moved download_selections logic to OCaml