Modifications to viewlog.pl to keep it in the context from which it was called.