Restructured the numerical part of basexp