Main now loops forever and logs results