Minimal loop that has configurable callbacks