Added ability to empty log