BRIGHTON, Colo. (CBS4) — The man who admitted to opening fire in a crowded Walmart in Thornton last November, killing three people, was sentenced on Friday.

Scott Ostrem, 48, was found mentally competent to stand trial earlier this summer. Ostrem agreed to plead guilty to three counts of first-degree murder to avoid the possibility of the death penalty earlier this month.

Scott Ostrem (credit: Thornton Police)

An Adams County judge sentenced him on Friday to three consecutive life sentences in prison without parole plus 48 years.

The courtroom became emotional during the victims’ families’ testimony.

Scott Ostrem (credit: CBS)

He shot and killed Pamela Marques, 52, of Denver, Carlos Moreno, 66, of Thornton, and Victor Vasquez, 26, of Denver.

After the sentencing, the family of Carlos Moreno spoke.

“Thank you to everybody supporting us and being with us through this hard time,” said Carlos’ daughter Callie Moreno.

“We are a very caring and loving family and we will get through this, one second and one minute at a time. We miss him every time we have a get together. But we’ll do it because he would want us to,” said Carlos’ sister-in-law Alice Acosta.

Victor Vasquez, Pamela Marques and Carlos Moreno

Ostrem was initially charged with with 37 counts, including three counts of first-degree murder, three counts of first-degree murder extreme indifference and 30 counts attempted first-degree murder.

(credit: CBS)