Adapted to toxcore changes