Limiting number of retry