Added procedure to look for variableType