Added title grab to code