Add SubPub functionality to components