Added local correlation variant, not yet working