Fusion Writing functions and modification of ExtractFromRes