Added trials loop.