Add new IP sources for notifications and make utility function more flexible