Update ScrFunctions.cpp