Made the version check way more efficient