Made it c compliant