Added function to add title