Update sf_main.cpp