Added key signing and setting functionality