Use dictionary to store variables