Added more stuff for working with alerts

Tested it cursorily in iced/node shells.
Would need more robust testing to have confidence in it