Added #if checks
Added #if check
added #if check