Added checks for logging (lastrequest/rebel)