Refactoring var.