Added lookup table saving