Add support for seeking between headers.

This patch adds support for seeking between headers.