Add automatic title functionality