Optional methods setup and loop