Now uses encrypted varaibles