Initialize loop using new API