Change signature function to sign