Added mote client side code