Why is `$attempts` initialized to 10?