Refactored and removed reference by variable to follow strict standards.