Added check for platform var