Add in interface for codex. Change util to more closely resemble interface.