Fixing order of variable assignment.