Fix for edge case
Fixing rotation and the bill of materials.
Fixing inversions