Define notification proc on initializing