Added Pthread mutex
Added MQTT