Updating to most current test loop for ai.