Change code of title funtion.