Added gettitle() function