Update LDA and add logging