Apparently I got some values flipped, woo code duplication.