Separate the parsing and qualification function.