Revert "Modified inline parsing to keep track of two pointers - the head of the list and the tail."

This reverts commit bc78ad0a182bd322552fd081e30e552c18a87455.