Add index and lib