Extract title/description into separate functions.
Remove a huge level of indentation.
Rename variable.
Remove debug echo.