Format nested functions properly
Add sub-stat access at the HTTP layer