Semi-functional loop handling