Be more clever about loop count (some modules manually loop with Bxx).