Huge refactor of Cochon.