Add API to fix mark limit/buffer size.

Fixes #225.