Rewrite HEAERS + DATAs plan.

This fixes #9.
This fixes #10.