Please inline `events` here instead of declaring an array.