0.4.0: Add contextual hooks and classes for 3 loop cases.