Thanks. With minor modifications, I got it to work as how I like.
That brings me to another question: since this code relies on the using default separator, is there anyway to force the separator option to the default value and disable the option in the settings? Will there be any unforeseen issues doing so?