pre-refactoring
CheckSignature. Refactoring in progress
Refactoring done