Added a sign function.