Write progress to console or MSIE