Sketch of implementation.