Add function to Rest Client