Added method to sign message