C version experiments
Merge from hell