Started on support for inner loops.