Clean up the general loop cases

Also make ApeScript localized in terms of interactions