Switched to C++, sorry for inconvenience