Move a IMB location to try_imb() and add a new IMS pattern (#2644).