I am trying to implement two level variable band hysteresis current controller in PSIM. I have a pdf where some C code is written named background & foreground for 2 level variable band HCC. So, inside microsoft visual C++ should I need to write both code or only foreground code is enough to run the simulation. Is background code used for experimental purpose.