Added -w to write out HTML