Doing buffering in the client side.