The Light-dependent Magnetic Compass