The Effect of a Magnetic Field on Electrons in a Periodic Potential