Unlocking the mysteries of the ice ages