Added C style functions