Add client side functionality.