Migrated add app box to OCaml