Parse/Merge methods now take a max parameter.

Allows parsing only part of a buffer.