Add signMessage code