Global best correlation calculation added.