Fixed parser to match multiple chunks, rather than just one. Added appropriate tests to cover.