Added the loop reference that will keep a loop alive