Changed verify_repo function