A cardiac rhythm management system includes an implantable device executing a dynamic pacing algorithm after an myocardial infarction event. Such a process overcomes the fundamental bandwidth-delay constraint in optics, and can generate arbitrarily small group velocities for light pulses with a given bandwidth, without the use of any coherent or resonant light-matter interactions. The stationary and supporting arms are collapsible and enable the device to be easily folded for storage and transport. The circuit board may be laid onto the metal support without sliding it into grooves and the clear lens may be snapped into place over the circuit board engaging grooves in the metal support.