Implemented and tested ParseConnectionChainEnd and fixed some bugs.