Updated DRMath class to fix errors.