Added beforechange and afterchange topics.