Also write algID -2 correctly (haha oops)