Synthesize subprocess calls through functions