Move this closer to first reference and into a deeper scope. See comment below