First implementation of signing.
Tested the signing.