This ai slop needs to be put in a separte thread.