Changed  to unchecked instead of bitmask and MathHelper.