Added some math for gsize