Added Synchronized loops to the customer agent