Added Mathematica version check.