Added preliminary measuremnt of goodnes of fit