This disclosure provides a pacing technique that reduces the effect of oversensing caused by noise on pacing therapy. The IMD delivers a pacing pulse subsequent to sensing an electrical signal on the lead when the sensed electrical signal coincides with an independently detected noise signal and the sensed electrical signal occurs during a period of time of an expected intrinsic cardiac signal. The IMD may, in some instances, trigger delivery of the pacing pulse during the escape interval instead of waiting for the escape interval to expire. Pacing in accordance with the techniques of this disclosure may allow for improved therapy during an MRI procedure by decreasing the risk associated with inappropriate pacing inhibition as well as decreasing the risk associated with pacing during the vulnerable period of the cardiac cycle.