Avoid recursive loop calling correct function instead.