Wrapped some loops.