Refactoring for redability.