The 2 helper methods above could go after this method to make review and future modification easier.