Remove redundent reset and log statemnt.