Add sign function.