Increasing retries with better approach for avoiding nick collisions.
Adding the mathutil file.