Removed vectorization for now - changed ordering of L arrays