He initially pleaded not guilty to the charges , but he has changed his plea as part of a deal with the government to cooperate with investigators and possibly to avoid the death penalty he might have received if convicted on some of the charges .