Thanks Mr. D and Ilanthar. This version has been much less stressful to work on and I am pretty happy with it so far. The grey scale test I ran last night didn't work quite as I had hoped, but it has given me some ideas for future work. Should be able to get back to work on this in the afternoon or early evening today, assuming things don't blow up at work before go home time.