Removed an unnecessary variable 'check_version'.