Added initialization method and fixed problem with re-subscribe