Initial implementation.

SFF-8472 implemented, but not reviewed.