Added function for getTitle