Modify dodai to fit the code at NII