Add doc function.
Messing around with the proposal, adding my notes.