EOT script now includes calculaion of r and slope