Generalised editable table population code.