LOUISVILLE, Ky. (WDRB) -- The legal team for an accused mass-shooter is challenging the death penalty.

Dylann Roof's attorneys filed the 40-page motion last night. It argues the death penalty is unconstitutional because of a high number of conviction errors and the years between conviction and execution.

Roof's attorneys also said he'd plead guilty if prosecutors remove the death penalty as a possible sentence.

Roof is accused of killing nine people inside a historically-black church in Charleston, South Carolina.

Copyright 2016 by WDRB News. All rights reserved.