Added the underlying code for notifications. Needs testing before implementing live values. Stable (I think).