Converted to C++
Updated status text in mode.py