A method is provided for determining optimal stimulus pulsewidth and stimulus amplitude for stimulating nerves with at least one electrode. The image forming apparatus may include a first casing and a second casing above the first casing. Each of one or more entries in a data structure in the CAPP are associated with a respective epoch.