Update to new jtoxcore api