Converted FlangeCalc to fragment