Your approach worked well and I have implemented in the functions fetch() and install_data()