Adding background class rotator as function