Moved BasicMath functions around.