Code written; untested.