Added acceptance loop.