Some more pre-built loop functions and migration to them