Modify functionnality of connect, subscribe and suback