Replace old title function