Added helper method to compare vars