Finished get_odd_XS routine