Rewrote artificial intelligence & entity actions