EQ works for variables too, also cleaned up redundant tempVar creation for this case, will do for others too