Refactored for to shorten line length.