Code causing warning messages corrected.