Add C version