Fixed ans_hist to work over ssh.