Added missing extractTitle function