Added subscribe and unsubscribe methods