Readded the LDA code without compiled bits