Added C compatibility