Created execution code for a list of goals