Correctly use swarmmode. Closes #30.