Added C Code