Also list correct links
Move valid lst line test to function