Replacing the version check with the function call