Added skeleton for run loop.