Added support for multiple cut/writemaphtml commands.