Translated FYBA.cpp and FYLD.cpp