Fixed bugs and implement default subscribe/unsubscribe feature.