SUBSCRIBE and PUBLISH methos added.(still not working right)