Added an ifcheck for lower versions