added number of retries when committing functionality