Added stathat
add stathat stat logging