Extra check to avoid setting observers when stats is undefined
Added a dummy next so that cabinet can be used standalone.