Implemented the generic list parse algorithm.