I'd recommend splitting it off into another function.