Electron-Phonon Interaction: The Effect of Magnetism on Lattice Vibrations