Added primitive statistics collection