Remove loop state check from FramesBefore/FramesAfter logic