Updated client side codes.