Added lifecycle trait with hook to reset statistics.