Adjusted version check, add json interface