Implement cond. Closes #48