Added callback for failed attempts