Added some math stuff