Fixed reset & logging code