FILE - In this Monday, Jan. 7, 2019, file photo, Jason Dalton, left, talks with his defense attorney Eusebio Solis moments before pleading guilty to six counts of murder and several other charges at the Kalamazoo County Courthouse in Kalamazoo, Mich. On Tuesday, Feb. 5, Dalton is set to be sentenced to life in prison with no chance for parole. (Joel Bissell/Kalamazoo Gazette via AP, Pool, File)
FILE - In this Monday, Jan. 7, 2019, file photo, Jason Dalton, left, talks with his defense attorney Eusebio Solis moments before pleading guilty to six counts of murder and several other charges at the Kalamazoo County Courthouse in Kalamazoo, Mich. On Tuesday, Feb. 5, Dalton is set to be sentenced to life in prison with no chance for parole. (Joel Bissell/Kalamazoo Gazette via AP, Pool, File) Credit: Joel Bissell

A southwestern Michigan man who fatally shot six strangers in between picking up passengers for Uber was sentenced Tuesday to life in prison with no chance of parole.

Jason Dalton, 48, received the mandatory sentence in Kalamazoo County court. He pleaded guilty to murder and attempted murder last month, just as jury selection was about to begin.

Dalton admitted shooting eight people in three locations in the Kalamazoo area in February 2016. After his arrest , police quoted Dalton as saying a โ€œdevil figureโ€ on Uberโ€™s app was controlling him on the day of the shootings.

Four women were killed in the parking lot of a Cracker Barrel restaurant: Barbara Hawthorne, Dorothy โ€œJudyโ€ Brown, Mary Lou Nye and her sister-in-law, Mary Jo Nye. Rich Smith and his 17-year-old son, Tyler Smith, were fatally shot while looking at a pickup truck in a dealerโ€™s lot.

Abigail Kopf, who was 14 at the time, was shot in the head during the restaurant shooting and survived. Tiana Carruthers was shot and wounded in a residential area.

Dalton was deemed competent to stand trial and had dropped an insanity defense just before his trial was scheduled to start. He hasnโ€™t explained in court why he randomly shot eight people.

The father of two had worked as an insurance adjuster and had no criminal record before the shootings.

Prosecutor Jeff Getting has said the motive behind the shootings is a question that โ€œhaunts us.โ€

A gun shop owner said Dalton bought a jacket with an inside pocket designed to hold a gun just hours before the rampage. Shop owner Jon Southwick recalled Dalton โ€œlaughing and joking,โ€ and giving a โ€œone-armed hugโ€ to the manager before making the purchase.