Added checkIfBG()