Started working on C port