Creating a valid structure and generating shorttitles where needed.