Rewritten to include multisig codebase