Added stats computation as inbox operation thru the API.