Added support for sgn