Added title element checking.