Improvement: made it robust to blank lines in model list file.