Modified ta_sparse to scan over sparsity levels.