Reference correct variable