Improving ptn_parse_pls_file