Update to version v1.2.2

Added version checking