A (very) general controller