Update slave.c