Added topic change detection

Fix #2