Make diag log permanent and delete some un-used code