This makes more sense to me as a function.