Adding c support