AI Tweak. Added Perfered space checking.