Refactor code to reflect new api changes

Created by  wgaffa  on March 24, 2024
DN2F55HBRBTHQAJDU4GOOGAEAXH5MIFPQSPEK2NNAPDJPZOOFJFQC
Change contents