Using Transaction Functions for Retries