More robust wandering behavior. Entity improvements.