Various improvements to the multifarm example