Changed orientation to return positive values, and orientation180 to return ints