Root finding functions added.