Update MainTransform to support IOException being thrown