Adding Legacy version of source generator as to ease upgrades