Changed names of variables in the document signing functions.