Updated to get closest and furthest from the mean