Added c version :)