Made AppId_t type safe