Add API version check