More small AI fixes/additions.