Refactored out part of for loop