Added function to allow refresshing of tern server