Added autoretry decorator