Added sleeps to client side