Fixed for sonar violation.