Final update to make LDA runnable