CFUtilities.cpp/h by crwulff