Fixed 'attemps' to 'attempts', added maxAttempts event.