'LegacyVersion' Error

For those that are following this solution, I had to comment out lines 6 & 252-253 it references 250-251 but that is maybe outdated