Added missing loops functions