Add option to disable loop detection completely