Adds version check