Made sign return an int.
Added constraints on positioning.