Added to possibility to enable or disable statistics