Improve EntityAI and Sided Functions