Highly inefficient LMM; experimenting with different coding techniques