Added compatibility with the Toast plugin (and possibly others)