This module has not been tested yet; I'm mainly intending to see if my general approach here is correct.