Added unistd.h include to avoid build errors with the sleep function