Added settitle function