Tested versions of binned and non-binned corrcoeff functions.