Added C wait