Update ffsengine.cpp