Thanks! It took some tweaking and looking up what those particular functions do, but it's working perfectly now. Your expertise is much appreciated!