Added level handling in notification API