Looping added, as well as some interface bits.