Initial write-up of pub/sub hooks