Avoid recursive loop