Layout demo with branching and recursive timeout