Pulled notification code into its own data structure rather than using cURL rawly