Add event prototype