Seemingly working LDA