Added OS version check to prevent running on XP and earlier