[broke] Update and further map out the api in pseudocode.