Write fabric execution function