Adding index and libraries