Yup, I probably should've put more time into getting the loop detection right. Thanks for the feedback :)