Updated version check