Added function to get text in lib