Added communicate option (closes #42)