Code used for synergy control and analysis