Use setTimeout to simulate waiting children