Added c function and completion