Made more things use the proper lmid value. Performace!