Added some more error checking for fetch and logging for alerts