Implement concmd function

Closes #119