Added variablecheck