Added mag dip/dec as parameters.