Allow variable number of titles to be generated