Started implementing loop.