Implement agree command