A big thanks to vakYpollo in #xml for his invaluable assistance in solving a problem with $localoptions.
