Added support for unique_vals_idx
Changes related to scripts running on the cluster and various other improvements