Added seatMath function.