Code to read all variables