Added C-version.