New Working Version Of The Correlation Function